import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useSignOrderStore = defineStore('signOrder',()=>{
    //定义状态的内容
    //响应式变量
    const signOrder = ref('');
    //修改token
    const setSignOrder=(newSignOrder)=>{
        signOrder.value = newSignOrder;
    }
    //移除token
    const removeSignOrder=()=>{
        signOrder.value = '';
    }
    
    return{
        signOrder,setSignOrder,removeSignOrder
    }
},{
    persist: true //持久化存储
})